<?php
/**
 * Produce a total score. Call with parameter 'static' for
 * output suitable for static HTML pages.
 *
 * $Id: index.php 3209 2010-06-12 00:13:43Z eldering $
 *
 * Part of the DOMjudge Programming Contest Jury System and licenced
 * under the GNU GPL. See README and COPYING for details.
 */

/*require('init.php');
$title="Scoreboard";
// set auto refresh
$refresh="30;url=./";*/

//require(LIBWWWDIR . '/header.php');
//include("menu.php");
//require(LIBWWWDIR . '/scoreboard.php');

//$isstatic = @$_SERVER['argv'][1] == 'static' || isset($_REQUEST['static']);

//if ( ! $isstatic ) putClock();



require('init.php');
$refresh = '30;url=index.php';
$title = 'Submissions';
require(LIBWWWDIR . '/header.php');

echo $_SESION['userid'];

// Put overview of team submissions (like scoreboard)
echo "<div id=\"teamscoresummary\">\n";
($cdata['post']==1 && $teamdata['categoryid']==1)?:putTeamRow($cdata, $login);
echo "</div>\n";

echo "<h1>Submissions user ".htmlspecialchars($userdata[15])."</h1>\n\n";

// call putSubmissions function from common.php for this team.
$restrictions = array( 'teamid' => $login );

echo "USER ".$userdata[0]." ".categor.$userdata[18];

putSubmissions($cdata, $restrictions);



require(LIBWWWDIR . '/footer.php');
?>
